package com.yudean.esb.domain.mds;

import java.io.Serializable;
import java.util.Date;

/**
 * MdsHistoryEmployee pojo类。
 *
 * @author
 * @version 1.0
 */
public class MdsHistoryEmployee implements Serializable {
    private static final long serialVersionUID = 3601514114040485233L;

    private String employeeNum;

    private String employeeName;

    private String deptCode;

    private String deptName;

    private String compCode;

    private Date creationDate;

    private Date lastUpdateDate;

    private String approach;

    private String dataSource;

    private String designation;

    private String userName;

    private String attribute1;


    public String getAttribute1() {
        return attribute1;
    }

    public void setAttribute1(String attribute1) {
        this.attribute1 = attribute1;
    }

    public String getEmployeeNum() {
        return employeeNum;
    }

    public void setEmployeeNum(String employeeNum) {
        this.employeeNum = employeeNum;
    }

    public String getEmployeeName() {
        return employeeName;
    }

    public void setEmployeeName(String employeeName) {
        this.employeeName = employeeName;
    }

    public String getDeptCode() {
        return deptCode;
    }

    public void setDeptCode(String deptCode) {
        this.deptCode = deptCode;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getCompCode() {
        return compCode;
    }

    public void setCompCode(String compCode) {
        this.compCode = compCode;
    }

    public Date getCreationDate() {
        return creationDate;
    }

    public void setCreationDate(Date creationDate) {
        this.creationDate = creationDate;
    }

    public Date getLastUpdateDate() {
        return lastUpdateDate;
    }

    public void setLastUpdateDate(Date lastUpdateDate) {
        this.lastUpdateDate = lastUpdateDate;
    }

    public String getApproach() {
        return approach;
    }

    public void setApproach(String approach) {
        this.approach = approach;
    }

    public String getDataSource() {
        return dataSource;
    }

    public void setDataSource(String dataSource) {
        this.dataSource = dataSource;
    }


    public String getDesignation() {
        return designation;
    }

    public void setDesignation(String designation) {
        this.designation = designation;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof MdsHistoryEmployee)) return false;

        MdsHistoryEmployee that = (MdsHistoryEmployee) o;

        if (approach != null ? !approach.equals(that.approach) : that.approach != null) return false;
        if (attribute1 != null ? !attribute1.equals(that.attribute1) : that.attribute1 != null) return false;
        if (compCode != null ? !compCode.equals(that.compCode) : that.compCode != null) return false;
        if (creationDate != null ? !creationDate.equals(that.creationDate) : that.creationDate != null) return false;
        if (!dataSource.equals(that.dataSource)) return false;
        if (deptCode != null ? !deptCode.equals(that.deptCode) : that.deptCode != null) return false;
        if (deptName != null ? !deptName.equals(that.deptName) : that.deptName != null) return false;
        if (designation != null ? !designation.equals(that.designation) : that.designation != null) return false;
        if (employeeName != null ? !employeeName.equals(that.employeeName) : that.employeeName != null) return false;
        if (!employeeNum.equals(that.employeeNum)) return false;
        if (lastUpdateDate != null ? !lastUpdateDate.equals(that.lastUpdateDate) : that.lastUpdateDate != null)
            return false;
        if (userName != null ? !userName.equals(that.userName) : that.userName != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = employeeNum.hashCode();
        result = 31 * result + (employeeName != null ? employeeName.hashCode() : 0);
        result = 31 * result + (deptCode != null ? deptCode.hashCode() : 0);
        result = 31 * result + (deptName != null ? deptName.hashCode() : 0);
        result = 31 * result + (compCode != null ? compCode.hashCode() : 0);
        result = 31 * result + (creationDate != null ? creationDate.hashCode() : 0);
        result = 31 * result + (lastUpdateDate != null ? lastUpdateDate.hashCode() : 0);
        result = 31 * result + (approach != null ? approach.hashCode() : 0);
        result = 31 * result + dataSource.hashCode();
        result = 31 * result + (designation != null ? designation.hashCode() : 0);
        result = 31 * result + (userName != null ? userName.hashCode() : 0);
        result = 31 * result + (attribute1 != null ? attribute1.hashCode() : 0);
        return result;
    }

    public String toString() {
        StringBuffer buf = new StringBuffer();
        buf.append("\r\nemployeeNum =" + this.employeeNum);
        buf.append("\r\nemployeeName =" + this.employeeName);
        buf.append("\r\ndeptCode =" + this.deptCode);
        buf.append("\r\ndeptName =" + this.deptName);
        buf.append("\r\ncompCode =" + this.compCode);
        buf.append("\r\ncreationDate =" + this.creationDate);
        buf.append("\r\nlastUpdateDate =" + this.lastUpdateDate);
        buf.append("\r\napproach =" + this.approach);
        buf.append("\r\ndataSource =" + this.dataSource);
        buf.append("\r\nattribute1 =" + this.designation);
        buf.append("\r\nuserName =" + this.userName);
        return buf.toString();
    }
}

